# -*- coding: utf-8 -*-

"""
DateTime   : 2021/04/15 9:39
Author     : ZhangYafei
Description: 
"""
from crawler.ibiquge import IbiqugeCrawler


def start_spider():
    print('小说来源：1. 笔趣阁(https://www.ibiquge.net/)')
    crawler = IbiqugeCrawler()
    while True:
        book_id = input('请选择下载的小说ID(例如：48_48800) >>  ')
        if not book_id:
            print('小说ID不能为空, 请重新输入')
            continue
        break
    crawler.start(book_id)


if __name__ == '__main__':
    start_spider()
